package com.xiong.springsecurity.service;

import com.xiong.springsecurity.domain.ResponseResult;
import com.xiong.springsecurity.domain.User;

import java.util.Map;

/**
 * <p>
 *
 * @author XiongDa
 * @version 1.0.0
 * @belongsProject: SpringSecurity
 * @belongsPackage: com.xiong.springsecurity.service.impl
 * @since 2023/6/14 12:47
 **/
public interface LoginService {

    /**
     * 登入  作用: 代替SpringSecurity默认的认证, 封装 Authentication 对象,
     *            调用 AuthenticationManager 的 authentication 方法进行认证
     * @param user
     * @return com.xiong.springsecurity.domain.ResponseResult<java.lang.Object>
     * @author 熊林飞
     * @date: 2023/6/14 12:52
     */
    ResponseResult<Map<String, String>> login(User user);

}
